<?php
$featureName = '订单统计';
$permission = 'comboAllOrder';
?>
@extends('admin.tableLayout')
@section('css')


    @endsection
@section('title','订单统计')
@section('barName','订单统计')
@section('quote')

    <hr/>

        <button  class="layui-btn" onclick="javascript:location.href='{{route('orderTotal',['exprot'=>1])}}'" ><i class="fa fa-cloud-down" aria-hidden="true"></i> 导出</button>



@endsection
@section('table')
<table border="1">
    <tr>
        <th width="150px"></th>
        <th colspan="2" width="150px">当前汇总</th>
        <th colspan="2" width="150px">前一日订单合计（00:00-24:00）</th>
        <th colspan="2" width="150px">本月订单合计（1-30/31号）</th>
    </tr>
    <tr>
        <th width="150px">营业收入</th>
        <th colspan="2" >  （合计营业额：{!! $totalPrice/100 !!}）</th>
        <th colspan="2">（合计营业额：{!! $todayPrice/100 !!}）</th>
        <th colspan="2">  （合计营业额：{!! $mounthPrice/100 !!}）</th>
    </tr>
    <tr>
        <td style="text-align: center">订单名称</td>
        <td style="text-align: center"> 订单数量汇总</td>
        <td style="text-align: center">门票发放汇总</td>
        <td style="text-align: center">  订单数量汇总</td>
        <td style="text-align: center">门票发放汇总</td>
        <td style="text-align: center">  订单数量汇总</td>
        <td style="text-align: center">门票发放汇总</td>
    </tr>
    @foreach($commbo as $v)
        <tr>
            <td style="text-align: center" >{{$v['title']}}</td>
            <td style="text-align: center"> {{$v['total']}}</td>
            <td style="text-align: center">{{$v['totalTicket']}}</td>
            <td style="text-align: center"> {{$v['todayTotal']}}</td>
            <td style="text-align: center">{{$v['todayTotalTicket']}}</td>
            <td style="text-align: center">  {{$v['mounthTotal']}}</td>
            <td style="text-align: center">{{$v['mounthTotalTicket']}}</td>
        </tr>
        @endforeach

</table>
    @endsection